@tailwind base;
@tailwind components;
@tailwind utilities;

/* 重置默认样式，确保我们的认证界面不受全局样式影响 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 确保认证页面不受其他样式影响 */
#root {
  isolation: isolate;
}

/* 移除默认的按钮样式 */
button {
  font-family: inherit;
}

/* 移除默认的输入框样式 */
input {
  font-family: inherit;
}

/* 移动端优化 */
@media (max-width: 768px) {
  html, body {
    font-size: 16px;
  }
}

/* 链接样式 */
a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* 表单元素样式 */
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 按钮基础样式 */
button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

/* 输入框焦点样式 */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #eff6ff;
}

/* 认证表单相关样式 - 完全匹配图片设计 */

/* 响应式表单容器 */
@media (max-width: 640px) {
  .auth-form-wrapper {
    width: 100%;
    padding: 1rem;
  }
}

/* 输入框样式 - 移除默认focus轮廓，确保焦点颜色为黄色 */
input:focus {
  outline: none;
  border-color: #fcd34d !important;
}

/* 响应式工具类 */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .auth-input-icon {
    padding-right: 1rem;
  }
}
